package com.xiaohong.search.pojo;

//import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Map;


//@Document(indexName = "xiaohong_sku")   //7版本及以上使用
public class SkuInfo implements Serializable {
    private String id;//商品id
    private String name;//SKU名称
    private Integer price;//价格（分）
    private Integer num;//库存数量
    private String images;//商品图片列表
    private String spuId;//SPUID
    private Integer categoryId;//类目ID
    private String categoryName;//类目名称
    private Integer brandId;//品牌ID")
    private String brandChineseName;//品牌中文名称
    private String brandEnglishName;//品牌英文名称
    private String spec;//规格
    private Map<String,Object> specMap; // spec集合
    private Integer saleNum;//销量
    private Integer commentNum;//评论数
    private Integer status;//商品状态 1-正常，2-下架，3-删除
    private String gmtCreate;//创建时间
    private String gmtModified;//更改时间

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getSpuId() {
        return spuId;
    }

    public void setSpuId(String spuId) {
        this.spuId = spuId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getBrandChineseName() {
        return brandChineseName;
    }

    public void setBrandChineseName(String brandChineseName) {
        this.brandChineseName = brandChineseName;
    }

    public String getBrandEnglishName() {
        return brandEnglishName;
    }

    public void setBrandEnglishName(String brandEnglishName) {
        this.brandEnglishName = brandEnglishName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Map<String, Object> getSpecMap() {
        return specMap;
    }

    public void setSpecMap(Map<String, Object> specMap) {
        this.specMap = specMap;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
